<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        .layout-nav {
            position: fixed;
            width: 50px;
            height: 200px;
            right: 5px;
            bottom: 30%;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        ul li {
            width: 48px;
            height: 48px;
            background-color: #d3d3d3;
            margin-bottom: 2px;
            transition: background-color 0.3s ease-in-out;
            position: relative;
            float: right;
            transition: width .3s ease-in-out;
            overflow: hidden;
        }

        ul li img{
            background-size: cover;
            width: 30px;
            height: 30px;
            position: absolute;
            right: 9px;
            top: 50%;
            transform: translateY(-50%);
            filter: brightness(0) invert(1);
        }

        ul li:hover{
            width: 120px;
            background-color: #DE0100;
        }

        ul li span{
            position: absolute;
            display: block;
            width: 0px;
            height: 48px;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 16px;
            padding-left: 10px;
            line-height: 48px;
            overflow: hidden;
            transition: width .1s ease-in-out .2s;
        }

        ul li:hover span{ 
            width: 100px;
        }
    </style>
</head>
<body>
    <div class="layout-nav">
        <ul>
            <li class="session">
                <img src="/src/img/transition_pic/当前会话.png" alt="">
                <span>联系客服</span>
            </li>
            <li class="user">
                <img src="/src/img/transition_pic/头像.png" alt="">
                <span>京东会员</span>
            </li>
            <li class="shop">
                <img src="/src/img/transition_pic/购物车 (1).png" alt="">
                <span>购物车</span>
            </li>
            <li class="discount">
                <img src="/src/img/transition_pic/我的优惠券.png" alt="">
                <span>优惠券</span>
            </li>
        </ul>
    </div>
</body>
</html>